/*
 * Copyright (C), 2002-2018, Caljm有限公司
 * FileName: AutoConfigurationBootstrap
 * Author:   Byron Wang
 * Date:     2019/3/29 下午9:03
 * Description: //模块目的、功能描述
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */

package com.cpcs.bootstrap;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 功能描述：
 *
 * @author Byron Wang
 * @since 2019/3/29
 */
@EnableAutoConfiguration
public class AutoConfigurationBootstrap {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = new SpringApplicationBuilder(AutoConfigurationBootstrap.class)
                .web(WebApplicationType.NONE)
                .run(args);

        System.out.println(">>>>>>>>>>>>>:" + context.getBean("helloWorld", String.class));
        context.close();
    }
}
